<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>登录密码错误重新输入</title>
	</head>
	<body>
		<script>
			var userpwd = "123";
		    var inputpwd = prompt("请您输入登录密码");
		    while(userpwd != inputpwd){
			   alert("您输入的密码有误！！");
			   inputpwd = prompt("请您输入登录密码");
		    }
		    alert("登录成功！！！")
		</script>
	</body>
</html>
